package com.cbdp.common.result;

import lombok.Data;

/**
 * com.cbdp.common.result
 *
 * @author 白雨浓
 * date: 2018/10/26 11:46
 * content: 返回结果集
 */
@Data
public class Result {

    private boolean success;

    private int code;

    private String msg;

    private Object data;

    public Result(Object data) {
        this.success = true;
        this.data = data;
    }

    public Result(int code, String msg) {
        this.success = false;
        this.code = code;
        this.msg = msg;
    }
}
